<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>
	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<ui:define name="title">#{commonBundle.add} #{personBundle.employee}</ui:define>
		<ui:define name="center">
			<ui:decorate template="/facelets/template/centerTemplate.xhtml">
				<ui:define name="content">

					<ui:decorate template="/facelets/template/wizard/wizard.xhtml">
						<ui:param name="title" value="#{commonBundle.add} #{employeeBundle.employee}"/>
						<ui:param name="bean" value="#{employeeBean}"/>

						<h:panelGroup rendered="#{employeeBean.wizard.page eq 1}">
							<ui:decorate template="/facelets/template/person/nameEdit.xhtml">
								<ui:param name="idPrefix" value="employee"/>
								<ui:param name="person" value="#{employeeBean.record}"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{employeeBean.wizard.page eq 2}">
							<ui:decorate template="/facelets/template/person/personalInfoEdit.xhtml">
								<ui:param name="idPrefix" value="employee"/>
								<ui:param name="person" value="#{employeeBean.record}"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{employeeBean.wizard.page eq 3}">
							<ui:decorate template="/facelets/template/person/identityCardEdit.xhtml">
								<ui:param name="idPrefix" value="employee"/>
								<ui:param name="identityCard" value="#{employeeBean.record.identityCard}"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{employeeBean.wizard.page eq 4}">
							<h:outputText value="#{personBundle.address}"/>
							<ui:decorate template="/facelets/template/person/addressEditCompact.xhtml">
								<ui:param name="idPrefix" value="employeeAddressWiz"/>
								<ui:param name="address" value="#{employeeBean.address}"/>
								<ui:param name="addrBean" value="#{addressBean}"/>
								<ui:param name="addrType" value="true"/>
								<ui:param name="accomod" value="false"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{employeeBean.wizard.page eq 5}">
							<h:outputText value="#{personBundle.contact}"/>
							<ui:decorate template="/facelets/template/person/contactEdit.xhtml">
								<ui:param name="record" value="#{employeeBean.contact}"/>
								<ui:param name="idPrefix" value="emploeeContactWiz"/>
							</ui:decorate>
						</h:panelGroup>

						<h:panelGroup rendered="#{employeeBean.wizard.page eq 6}">
							<ui:decorate template="/facelets/template/person/employeeSpecificEdit.xhtml">
								<ui:param name="idPrefix" value="employee"/>
								<ui:param name="employee" value="#{employeeBean.record}"/>
							</ui:decorate>
						</h:panelGroup>
					</ui:decorate>

				</ui:define>
			</ui:decorate>
		</ui:define>
	</ui:decorate>
</f:view>